<!DOCTYPE html>
 <html>
    <head>
        <meta charset="utf-8">
        <title>标题</title>
        <link href="./css/index.css" rel="stylesheet"/>
        <script type="text/javascript" src="./js/jquery.js"></script>
        <script type="text/javascript" src="./js/uploadImg.js"></script>
    </head>
    <body>
      <div id="container">
        <a href="javascript:void(0)" class="file">选择文件
           <input type='file' multiple accept = 'image/gif,image/jpeg,image/jpg,image/png' />
           <input type="hidden" value=""/>
         </a>
      </div>
 
      <script type="text/javascript">

		function $_GET()
		{
			var Url=window.location.href;
			var u,g,StrBack='';
			if(arguments[arguments.length-1]=="#")
			   u=Url.split("#");
			else
			   u=Url.split("?");
			if (u.length==1) g='';
			else g=u[1];

			if(g!=''){
			   gg=g.split("&");
			   var MaxI=gg.length;
			   str = arguments[0]+"=";
			   for(i=0;i<MaxI;i++){
				  if(gg[i].indexOf(str)==0) {
					StrBack=gg[i].replace(str,"");
					break;
				  }
			   }
			}
			return StrBack;
		}

		var backgroundImageType = $_GET('type');
		
        var params = {
          container: '#container',
          url: '/admin/template/template/uploadimg',
          dragDrop: false,
          data: [],
          onDragLeave: function(target) {
            console.log(target);
          }
        };
        var uploadImg1 = new UploadImg(params);
      </script>
    </body>
</html>